//
//  HJDDetailInterViewController.m
//  常州红房子
//
//  Created by 胡金东 on 16/7/27.
//  Copyright © 2016年 胡金东. All rights reserved.
//

#import "HJDDetailInterViewController.h"

@interface HJDDetailInterViewController ()

@end

@implementation HJDDetailInterViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    self.view.backgroundColor = [UIColor whiteColor];
    self.title = @"分享宝妈";
    [self.navigationController.navigationBar setTitleTextAttributes:
     @{NSFontAttributeName:[UIFont systemFontOfSize:19],
       NSForegroundColorAttributeName:[UIColor getColorWithHexNumber:@"848484"]}];
//    self.navigationItem.leftBarButtonItem = [UIBarButtonItem itemWithTarget:self action:@selector(popToPre) image:@"︿" HighImage:nil];
    
    UIView *viewM = [[UIView alloc]initWithFrame:CGRectMake(0, 64, HJDWidth, 10)];
    viewM.backgroundColor = [UIColor getColorWithHexNumber:@"F1F0EE"];
    [self.view addSubview:viewM];
    
    UILabel *lblTitle = [[UILabel alloc]initWithFrame:CGRectMake(23, 64+20, 100, 30)];
    lblTitle.text = @"奖励积分：";
    lblTitle.textColor = [UIColor getColorWithHexNumber:@"323232"];
    lblTitle.font = [UIFont systemFontOfSize:19];
    [self.view addSubview:lblTitle];
    
    CGFloat imgX = CGRectGetMaxX(lblTitle.frame);
    UIImageView *img = [[UIImageView alloc]initWithFrame:CGRectMake(imgX, 64+25, 13, 17.5)];
    img.image = [UIImage imageNamed:@"金币"];
    [self.view addSubview:img];
    
    CGFloat sumX = CGRectGetMaxX(img.frame)+5;
    UILabel *sumLbl = [[UILabel alloc]initWithFrame:CGRectMake(sumX, 64+25, 40, 17.5)];
    sumLbl.text = @"+10";
    sumLbl.font = [UIFont systemFontOfSize:15];
    sumLbl.textColor = [UIColor getColorWithHexNumber:@"FF9BAA"];
    [self.view addSubview:sumLbl];
    
    UIView *viewR = [[UIView alloc]initWithFrame:CGRectMake(0, 124, HJDWidth, 50)];
    viewR.backgroundColor = [UIColor getColorWithHexNumber:@"F1F0EE"];
    [self.view addSubview:viewR];
    
    UILabel *lbl = [[UILabel alloc]initWithFrame:CGRectMake(23, 10, 100, 30)];
    lbl.text = @"任务说明";
    lbl.textColor = [UIColor getColorWithHexNumber:@"848484"];
    lbl.font = [UIFont systemFontOfSize:15];
    [viewR addSubview:lbl];
    
    UIImageView *iconImg = [[UIImageView alloc]initWithFrame:CGRectMake(23, 174+25, 13/2, 13/2)];
    iconImg.image = [UIImage imageNamed:@"greenRound"];
    [self.view addSubview:iconImg];
    
    CGFloat sconLblX = CGRectGetMaxX(iconImg.frame)+8;
    UILabel *sconLbl = [[UILabel alloc]initWithFrame:CGRectMake(sconLblX, 190, HJDWidth-46, 25)];
    sconLbl.textColor = [UIColor getColorWithHexNumber:@"848484"];
    sconLbl.font = [UIFont systemFontOfSize:15];
    sconLbl.text = @"商城首页";
    [self.view addSubview:sconLbl];
    
    UIImageView *iconImgOne = [[UIImageView alloc]initWithFrame:CGRectMake(23, 199+31, 13/2, 13/2)];
    iconImgOne.image = [UIImage imageNamed:@"greenRound"];
    [self.view addSubview:iconImgOne];
    
    CGFloat sconLblOneX = CGRectGetMaxX(iconImg.frame)+8;
    UILabel *sconLblOne = [[UILabel alloc]initWithFrame:CGRectMake(sconLblOneX, 190+30, HJDWidth-46, 25)];
    sconLblOne.textColor = [UIColor getColorWithHexNumber:@"848484"];
    sconLblOne.font = [UIFont systemFontOfSize:15];
    sconLblOne.text = @"商城首页";
    [self.view addSubview:sconLblOne];
    
}

//-(void)popToPre
//{
//    [self dismissViewControllerAnimated:YES completion:nil];
//}

@end
